﻿using BCCommon;
using BCCommon.Enums;
using BCDto.Common.DeviceInfo;
using BCDto.Website.User;

namespace BCService.Common.DeviceInfo
{
    /// <summary>
    /// 设备信息
    /// </summary>
    public interface IDeviceInfoService
    {
        /// <summary>
        /// 修改设备信息
        /// </summary>
        /// <param name="user">用户信息</param>
        /// <param name="appType">App类型</param>
        /// <param name="deviceInfoPutDto">设备信息</param>
        void UpdateAsync(UserDto user, AppType appType, DeviceInfoPutDto deviceInfoPutDto);

        /// <summary>
        /// 设备信息详细列表
        /// </summary>
        /// <param name="phone">手机号</param>
        /// <param name="userName">姓名</param>
        /// <param name="role">角色</param>
        /// <param name="appType">应用类型</param>
        /// <param name="osType">操作系统类型</param>
        /// <param name="model">手机型号</param>
        /// <param name="deviceId">设备标识号</param> 
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">当前页面大小</param>
        /// <returns></returns>
        PageableList<DeviceInfoViewDto> GetDeviceInfoViews(string phone, string userName, string role, string appType, string osType, string model, string deviceId, bool? ascending, int pageIndex, int pageSize);
    }
}
